import {WebviewWindow} from "@tauri-apps/api/webviewWindow";
import {getCurrentWindow, Window} from "@tauri-apps/api/window";
import {Webview} from "@tauri-apps/api/webview";

export async function CreateScreenshot() {
    console.log("Creating screenshot");
    let screenshotWebviewWindow = new WebviewWindow("screenshotWindow", {
        url: "/screenshot",
        parent: getCurrentWindow(),
        transparent: true,
        resizable: false,
        shadow: false,
        alwaysOnTop: true,
        focus: true,
        fullscreen: true,
        decorations: true,
        closable: true,
    });

}